﻿using PublicClass;
using PublicClass.Shift;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Produce.Domains.DTO
{
    public class ShiftDormDTO : AuditFields
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        public int SDId { get; set; }

        /// <summary>
        /// 耳号
        /// </summary>
        [StringLength(50)]
        public string? Earbugles { get; set; }

        /// <summary>
        /// 栋舍名称
        /// </summary>
        [StringLength(50)]
        public string? DormName { get; set; }

        /// <summary>
        /// 栏位名称
        /// </summary>
        [StringLength(50)]
        public string? ColumnsName { get; set; }

        /// <summary>
        /// 羊只品种
        /// </summary>
        public Breed Breed { get; set; }
        public string? BreedName { get { return Breed.ToString(); } }

        /// <summary>
        /// 性别
        /// </summary>
        public bool Sex { get; set; }

        /// <summary>
        /// 转出栋舍
        /// </summary>
        [StringLength(50)]
        public string? OriginallyDorm { get; set; }

        /// <summary>
        /// 转出栏位
        /// </summary>
        [StringLength(50)]
        public string? OriginallyColumns { get; set; }

        /// <summary>
        /// 转舍日期
        /// </summary>
        public DateTime TransferDate { get; set; }

        /// <summary>
        /// 羊只类型
        /// </summary>
        public SheepType SheepType { get; set; }
        public string? SheepTypeName { get { return SheepType.ToString(); } }

        /// <summary>
        /// 转舍类型
        /// </summary>
        [StringLength(50)]
        public TransferType? TransferType { get; set; }
        public string? TransferTypeName { get { return TransferType.ToString(); } }
    }
}
